(()=>{"use strict";var t=(t,e,i)=>new Promise(((s,r)=>{var o=t=>{try{d(i.next(t))}catch(t){r(t)}},a=t=>{try{d(i.throw(t))}catch(t){r(t)}},d=t=>t.done?s(t.value):Promise.resolve(t.value).then(o,a);d((i=i.apply(t,e)).next())}));class e{static resize_widgets(){}static init(){}static init_pager(){-1!==decodeURIComponent(location.href).indexOf("page=testimonial-widgets/tabs/create-widget.php")&&(this.destroyWidgets(),this.initWidgetsFromDom(!0))}static setConstants(){this.script=document.currentScript,this.loadedCss=[],this.loadedJs=[],this.svgs={good:'',bad:''},this.additionalLogoStyles={"header-logo":{Google:"height: 25px; top: -2px",Facebook:"height: 17px",Trustindex:"height: 19px",Tripadvisor:"height: 24px; top: -2px",Airbnb:"height: 26px; top: -3px",Yelp:"height: 32px; top: -8px",Amazon:"height: 20px; top: 5px",Arukereso:"height: 17px; top: 5px",Vrbo:"height: 20px; top: -2px",BBB:"height: 25px; top: -2px",Expedia:"height: 25px; top: -3px",Ebay:"height: 25px; top: -2px",Sitejabber:"height: 20px; top: 1px",Thumbtack:"height: 25px; top: -3px",Provenexpert:"height: 25px; top: 1px",Hotels:"height: 22px; top: -1px",Zillow:"height: 17px",Yell:"height: 18px",Checkatrade:"height: 15px; top: 2px",Capterra:"height: 15px; top: 2px",Etsy:"height: 20px; top: 1px",WordpressPlugin:"height: 13px; top: 1px",AngiesList:"height: 24px; top: -1px",OnlinePenztarca:"height: 30px; top: -3px",ConsumerAffairs:"height: 30px; top: -3px",Reviewsio:"height: 20px; top: 0px",Foursquare:"height: 15px; top: 3px",Justdial:"height: 15px; top: 3px",Houzz:"height: 20px; top: -3px",Indeed:"height: 17px; top: 0px"},"large-logo":{Facebook:"width: 145px; height: 28px",Google:"width: 110px; height: 35px",Yelp:"width: 95px; height: 46px; top: -5px",Airbnb:"width: 120px; height: 38px",Tripadvisor:"width: 155px; height: 33px",Trustpilot:"width: 140px; height: 34px",Hotels:"width: 152px; height: 30px",Amazon:"width: 120px; height: 36px",Bookatable:"height: 27px; left: 7px",Foursquare:"height: 20px; top: 3px",Trustindex:"width: 152px; height: 26px; top: 3px",Booking:"height: 25px",Opentable:"height: 35px",Capterra:"height: 34px",Thumbtack:"height: 34px",Fresha:"height: 21px",Expedia:"height: 44px",Mobilede:"height: 35px",Checkatrade:"height: 22px",Pricerunner:"height: 21px",Easyweddings:"height: 50px; top: 3px",Whichtrustedtraders:"width: 80px; height: 55px; top: -15px; left: 10px",Abia:"width: 100px; height: 41px",WordpressPlugin:"height: 35px",Zoover:"height: 22px",Arukereso:"height: 25px","Arukereso-ro":"height: 29px",Pricespy:"height: 39px","Pricespy-dk":"height: 42px","Pricespy-fi":"height: 35px","Pricespy-fr":"height: 31px","Pricespy-no":"height: 43px",Szallashu:"height: 26px","Szallashu-com":"height: 29px","Szallashu-cz":"height: 47px","Szallashu-pl":"height: 34px","Szallashu-ro":"height: 29px"},"small-logo":{Facebook:"width: 72px; height: 15px; top: 0px",Google:"width: 62px; height: 20px; top: 1px",Yelp:"width: 45px; height: 22px; top: -3px",Airbnb:"width: 64px; height: 20px",Tripadvisor:"width: 97px; height: 21px; top: 1px",Trustpilot:"width: 65px; top: 2px",Hotels:"width: 100px; height: 20px",Amazon:"width: 56px; height: 17px; top: 5px",Bookatable:"width: 83px; height: 15px; top: 1px",Foursquare:"width: 98px; height: 13px; top: 3px",Trustindex:"width: 95px; top: 2px",Booking:"width: 89px; height: 15px; top: 2px",Opentable:"width: 100px; height: 23px; top: -1px",Capterra:"width: 79px; height: 18px; top: 1px",Thumbtack:"width: 88px; height: 20px",Fresha:"width: 93px; height: 13px; top: 2px; left: 1px",Expedia:"width: 69px; height: 20px; top: 1px",Zillow:"width: 76px",Reco:"width: 76px",Mobilede:"width: 68px; top: 2px",Checkatrade:"width: 110px",Pricerunner:"width: 102px; height: 14px; top: 1px",Easyweddings:"width: 60px; height: 20px",Whichtrustedtraders:"width: 34px; height: 23px; top: -1px",Abia:"width: 40px",Ebay:"top: 2px",WordpressPlugin:"height: 12px; top: 1px",Arukereso:"width: 92px; height: 15px; top: 3px","Arukereso-bg":"width: 89px; height: 15px; top: 3px","Arukereso-ro":"width: 77px; height: 15px; top: 3px",Pricespy:"width: 69px; height: 18px","Pricespy-dk":"width: 64px; height: 18px","Pricespy-fi":"width: 77px; height: 18px","Pricespy-fr":"width: 88px; height: 18px","Pricespy-no":"width: 63px; height: 18px","Pricespy-nu":"width: 63px; height: 18px",Szallashu:"width: 76px; height: 13px; top: 2px","Szallashu-com":"width: 95px; height: 18px","Szallashu-cz":"width: 61px; height: 19px; top: 3px","Szallashu-pl":"width: 74px; height: 17px; top: 3px","Szallashu-ro":"width: 100px; height: 19px"}},this.richSnippetLoaded=document.querySelectorAll('script[src*=".trustindex.io/assets/js/richsnippet.js"], script[type="application/ld+json"][data-trustindex="1"]').length>0}static getCDNUrl(){if(void 0!==this.cdnUrl&&this.cdnUrl)return this.cdnUrl;let t="https://cdn.trustindex.io/";if(this.script&&this.script.src){let e=this.script.src.split("/");e.pop(),t=e.join("/")+"/"}return-1===t.indexOf("trustindex.")&&(t="https://cdn.trustindex.io/"),this.cdnUrl=t,t}static addCSS(t,e){if(void 0===this.loadedCss&&(this.loadedCss=[]),!t||-1!==this.loadedCss.indexOf(t))return e?e():null;let i=document.createElement("link");return i.type="text/css",i.rel="stylesheet",i.href=t,document.head.appendChild(i),e&&i.addEventListener("load",e),this.loadedCss.push(t)}static addJS(t,e){if(void 0===this.loadedJs&&(this.loadedJs=[]),!t||-1!==this.loadedJs.indexOf(t))return e?e():null;let i=document.createElement("script");return i.type="text/javascript",i.src=t,document.head.appendChild(i),e&&i.addEventListener("load",e),this.loadedJs.push(t)}static getScriptSelector(t){return'div[src*=".trustindex."][src*="'+t+'.js"],div[data-src*=".trustindex."][data-src*="'+t+'.js"],script[src*=".trustindex."][src*="'+t+'.js"]'}static getWidgetUrl(t){return void 0===t?null:this.getCDNUrl()+"widgets/"+t.substring(0,2)+"/"+t+"/"}static loadWidgetsFromDom(){return t(this,null,(function*(){document.querySelectorAll(this.getScriptSelector("loader")).forEach((e=>{if(e.getAttribute("data-ti-widget-inited"))return;e.setAttribute("data-ti-widget-inited",!0);let i=e.getAttribute("data-src")||e.getAttribute("src"),s=i.replace(/.+\?([^&]+)/,"$1");if(!s||s===i||-1!==s.indexOf("="))return;let r=Boolean(e.getAttribute("data-enable-delay-load"));if("SCRIPT"===e.tagName){let t=document.createElement("div");t.key=e.key,e.replaceWith(t),e=t}e.key=s,e.isTriggerLoad=function(t=600){let e=this.getBoundingClientRect();return e.right<=(window.innerWidth||document.documentElement.clientWidth)+t&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)+t},(e=>{t(this,null,(function*(){let t=yield this.getWidgetHtml(e);if(!1===t)return e.innerHTML='\n\t\t\t\t\t\tWidget not found! Probably it is already deleted or there is typo in its ID.\n\t\t\t\t\t\tWe suggest that you log in to the Trustindex system and follow the widget configuration instructions.\n\t\t\t\t\t\tOr, if you don\'t have an account, create one for free at www.trustindex.io\n\t\t\t\t\t';if(!t)return e.replaceWith(document.createComment("Trustindex widget ("+e.key+") is empty here."));if(/style="[^"]*border: 4px dashed red[^"]*"/.test(t))return e.innerHTML=t;r||(r=-1!==t.indexOf('data-delay-load="1" class="ti-widget'));let i=/(?:data-layout-category="floating"|data-layout-id="(?:17|21|52|53)")/.test(t);if(!e.closest("head")||i){if(e.contentHtml=t,!this.richSnippetLoaded){let e=/data-rich-snippet="([^"]+)"/.exec(t);e&&e[1]&&(this.richSnippetLoaded=!0,this.addJS(this.getCDNUrl()+"assets/js/richsnippet.js?"+e[1]))}e.isTriggerLoad(100)?r?window.tiElementToWaitForActivity.push(e):new TrustindexWidget(null,e):i?new TrustindexWidget(null,e):(e.isWaitForVisibility=!0,window.tiElementToWaitForActivity.push(e))}}))})(e)}))}))}static initWidgetsFromDom(t=!1,e){let i=this.widgetsForInit||document.querySelectorAll(".ti-widget:not(.ti-certificate):not(.ti-feed-widget)"+(t?"":":not([data-trustindex-widget])"));void 0!==e&&i.length?(void 0===this.widgetsForInit&&(this.widgetsForInit=i),new TrustindexWidget(i[e]),++ethis.initWidgetsFromDom(t,e)),20):delete this.widgetsForInit):i.forEach((t=>new TrustindexWidget(t)))}static destroyWidgets(){window.tiWidgetInstances.forEach((t=>t.destroy())),window.tiWidgetInstances=[]}static getWidgetHtml(e){return t(this,null,(function*(){let t=this.getWidgetUrl(e.key)+"content.html";if("wp-widget"===e.key){let i=e.getAttribute("data-template-id");if(i){let t=document.getElementById(i);if(t)return e.removeAttribute("data-template-id"),t.remove(),t.innerHTML.replace(/decoding="async"/g,"").replace(/ (?:src|srcset|data-src|data-srcset|data-ti-src|data-ti-srcset|consent-original-src-_|consent-original-srcset-_|consent-original-data-src-_|consent-original-data-srcset-_)="(?!http)[^"]*"/g,"").replace(/data-ti-src="[^"]+lazy\.(png|jpg|jpeg|gif|svg)"/g,"").replace(/consent-original-class-_="/g,'class="').replace(/consent-original-src-_="/g,'src="').replace(/consent-original-srcset-_="/g,'srcset="').replace(/consent-original-data-src-_="/g,'data-src="').replace(/consent-original-data-srcset="/g,'data-srcset="').replace(/